package com.iting.xmldemo.impl;


import com.iting.xmldemo.UserDao;

import java.util.*;

/**
 * @author iting Nie
 * @version 1.1
 * @create 2021/11/10
 */
public class ArrayUserDaoImp implements UserDao {
    public void setStrings(String[] strings) {
        this.strings = strings;
    }

    public void setStringMap(Map<String, String> stringMap) {
        this.stringMap = stringMap;
    }

    public void setStringSet(Set<String> stringSet) {
        this.stringSet = stringSet;
    }

    public void setStringList(List<String> stringList) {
        this.stringList = stringList;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    private String[] strings;
    private Map<String,String> stringMap;
    private Set<String> stringSet;
    private List<String> stringList;
    private Properties properties;
    @Override
    public void add() {
        // System.out.println("ArrayUserDaoImpl的add方法被调用了");
        // System.out.println("Array : "+Arrays.toString(strings));
        // System.out.println("Map : "+stringMap);
        // System.out.println("Set : "+stringSet);
        // System.out.println("List : "+stringList);
        // System.out.println("properties : "+properties);
    }

	public ArrayUserDaoImp() {
		// System.out.println("ArrayUserDaoImp的无参构造");
	}
}
